package com.fjec.base.controller;

import com.fjec.common.protocol.JsonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.fjec.base.service.ISysParamService;

import javax.annotation.Resource;
import java.util.Map;

/**
 * <p>
 * 005.系统参数表 前端控制器
 * </p>
 *
 * @author admin
 * @since 2020-08-31
 */
@RestController
@RequestMapping("/")
public class SysParamController {

    @Resource
    private ISysParamService service;

    /**
     * 获取系统参数
     *
     * @return
     */
    @GetMapping("/setting/get")
    public Map<String, Object> getSysSetting() {
        return service.getSysSetting();
    }

    /**
     * 缓存系统参数
     *
     * @return
     */
    @GetMapping("/setting/cache")
    public Map<String, Object> cacheSysSetting() {
        return service.getSysSetting();
    }
}
